package abc.ynny.domo10;

public  abstract class BaseStudent {
    private String name;
    private int age;
    private String sex;
    private double id;
    public abstract void student();

    public BaseStudent(){

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public double getId() {
        return id;
    }

    public void setId(double id) {
        this.id = id;
    }
    public void BaseStudent(String name,int age,String sex,double id){
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.id = id;
    }
    public abstract void study();


    @Override
    public String toString() {
        return "BaseStudent{" +
                "学生姓名 ='" + name + '\'' +
                ", 年龄 =" + age +
                ", 性别 ='" + sex + '\'' +
                ", 学号 =" + id +
                '}';
    }
}
